﻿using IM.Easy.Core.ServiceLifetime;
using IM.Easy.Entity.Gen;
using IM.Easy.GenServices.Dtos;
using IM.Easy.GenServices.Dtos.Gen;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IM.Easy.GenServices.IServices
{
    public interface IGenService : ITransient
    {
        /// <summary>
        /// 生成表信息
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        GenTable GenTableInfo(DbTableDto dto);

        /// <summary>
        /// 获取代码
        /// </summary>
        MemoryStream Gen(GenModel model);


        GenModel GetGenModel(GenTableDto dto);
    }
}
